/* =========================================================
   Работа — Свободный график — landing page styles
   ========================================================= */

:root {
  --primary: #1FAA59;
  --primary-dark: #0F8A44;
  --primary-light: #E7F7EE;
  --gradient-end: #16A34A;
  --bg: #F7F9F8;
  --surface: #FFFFFF;
  --text: #12161B;
  --text-secondary: #667085;
  --border: #E7EAED;
  --shadow: 0 8px 24px rgba(18, 22, 27, 0.06);
  --shadow-lg: 0 20px 45px rgba(18, 22, 27, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-banner {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-name span {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.topbar-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-banner-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 28px;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--gradient-end));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 170, 89, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(31, 170, 89, 0.34);
}

.btn-primary svg {
  transition: transform 0.15s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.hero-disclaimer {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  max-width: 440px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

/* ---------- Hero visual (illustrative, code-drawn phone mock) ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  width: 260px;
  border-radius: 34px;
  background: var(--text);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-screen {
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  padding: 18px 16px 20px;
}

.phone-screen h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}

.phone-screen p {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--text-secondary);
}

.phone-search {
  height: 34px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.phone-banner {
  border-radius: 14px;
  background: linear-gradient(120deg, var(--primary), var(--gradient-end));
  color: #fff;
  padding: 16px;
  margin-bottom: 16px;
}

.phone-banner b {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.phone-banner span {
  font-size: 10px;
  opacity: 0.85;
}

.phone-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.phone-card b {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.phone-card .row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.phone-tag {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.phone-tag.alt {
  background: #F1F2F4;
  color: var(--text-secondary);
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.phone-nav span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg);
}

.phone-nav span.active {
  background: var(--primary-light);
}

.floating-chip {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-chip.one {
  top: 10%;
  left: -6%;
}

.floating-chip.two {
  bottom: 12%;
  right: -8%;
}

.floating-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Section heading ---------- */

.section {
  padding: 64px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

/* ---------- Feature grid (squares) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--primary), var(--gradient-end));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--primary), var(--gradient-end));
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
}

.cta-band p {
  margin: 0;
  opacity: 0.92;
  font-size: 14.5px;
  max-width: 420px;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.btn-light:hover {
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
}

.footer-links a,
.footer-links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--text);
}

/* ---------- Privacy policy overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 22, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.policy-panel {
  width: min(520px, 100%);
  height: 100%;
  background: var(--surface);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.overlay.open .policy-panel {
  transform: translateX(0);
}

.policy-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  z-index: 2;
}

.policy-header h3 {
  margin: 0;
  font-size: 17px;
}

.policy-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.policy-close:hover {
  background: #EDEFF1;
  transform: rotate(90deg);
}

.policy-body {
  padding: 22px;
  overflow-y: auto;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-line;
}

.policy-body p {
  margin: 0 0 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .topbar-cta {
    display: none;
  }

  .hero {
    padding: 40px 0 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 32px 24px;
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone {
    width: 220px;
  }

  .floating-chip {
    display: none;
  }
}
